package com.qf.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (GuideTable)实体类
 *
 * @author ZhiHuiJun
 * @since 2024-05-04 01:43:24
 */
public class GuideTable implements Serializable {
    private static final long serialVersionUID = -22445824087922617L;

    private Integer id;

    private String title;

    private String category;

    private String author;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //  @JsonFormat  1将接收得到的json数据中对应birthday 时间转换 java中Date
    //               2.处理器方法返回json数据时 将java中Date  转换为对应的字符串时间   yyyy-MM-dd
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operationTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

}

